Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@agrarium/core

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agrarium/core

Agrarium core engine

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

Agrarium Core

Agrarium stream engine wich provides interface for microplugins infrastructure. Every plugin can get any data from any resource. Usually it is file system, but it also can be remote resource or whatewhere you want ;) Read more about plugins API here and write your own the best plugin!

Usage

$ npm i agrarium

Or use it standalone:

npm i @agrarium/core

Anywhere in your code:

const { agrarium, PluginDTS } = require('agrarium');

agrarium({
    src: ['./src/components'],
    plugins: [
        new PluginDTS({/* options */})
    ]
});

Options

src: string[]

Set of paths to the sources.

plugins: IPlugin[]

Set of plugins or presets.

transform?: (chunk: IChunk) => {}

Use this function if you need to transform chunk. For example you can add or remove any data from every chunk.

cwd?: string

Custom path to project cwd.

groupBy?: (file: BEMSDK.IFile) => string

Use this function to sort and group found entties. Grouped by component by default.

Types Definitions

All interfaces defined in the public package [@agrarium/types](../types/index.d.ts).

License MIT

FAQs

Package last updated on 25 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc